#include<ntddk.h>
#include<intrin.h>


void driver_unload(_DRIVER_OBJECT* DriverObject) {

	UNREFERENCED_PARAMETER(DriverObject);
}

extern "C" {

	__declspec(dllimport)
		BOOLEAN HviIsAnyHypervisorPresent(VOID);


}

extern "C"
NTSTATUS DriverEntry(_DRIVER_OBJECT * DriverObject, PUNICODE_STRING RegistryPath) {

	UNREFERENCED_PARAMETER(DriverObject);
	UNREFERENCED_PARAMETER(RegistryPath);

	bool is_find_hypervisor = false;

	DriverObject->DriverUnload = driver_unload;

	//HviIsAnyHypervisorPresent win10导出

	is_find_hypervisor = HviIsAnyHypervisorPresent();





	if (is_find_hypervisor) {
		DbgPrint("find hypervisor!\n");
	}

	return STATUS_SUCCESS;
}